class Card:
    def __init__(self,account,password,name,balance):
        self.account=account
        self.password=password
        self.name=name
        self.balance=balance

    def withdraw(self,money):
        self.balance -=money
class BHK(Card):
    def ZZ(self,target,money):
        self.balance-=money
        target.balance+=money

class THK(Card):
    def WW(self,money):
        self.balance-=money
        self.balance-=2
zhangcard=BHK("0032","XXXX","三",10000000)
Licard=BHK("0033","XXXX","四",100)
zhangcard.withdraw(2000)
zhangcard.ZZ(Licard,25000)
meicard=BHK("0031","XXXX","梅",10000)
meicard.withdraw(3000)
print(zhangcard)